/**
 * 政策管理路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const policySupportRouter = {
  path: '/policy-support',
  name: 'policy-support',
  component: Main,
  meta: {
    keepAlive: true,
    showAlways: true,
    // hideInMenu: false,
    title: '政策管理',
    access: ['PolicyMng'],
    // notCache: false,
    icon: '_zhengcezhichi'
  },
  children: [
    {
      path: 'policySupportList',
      name: 'policySupportList',
      meta: {
        keepAlive: true,
        hideInMenu: false,
        title: '政策文件管理',
        access: ['policy-support']
        // notCache: false
      },
      component: () => import('@/view/policy-support/policyFiles/policySupportList.vue')
    },
    {
      path: 'yearExamine',
      name: 'yearExamine',
      meta: {
        keepAlive: true,
        showAlways: true,
        title: '年审',
        access: ['YearReview']
        // notCache: false
      },
      component: parentView,
      children: [
        {
          path: 'baseUpload',
          name: 'baseUpload',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '基数上传时间节点',
            access: ['YearReviewTime']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearExamine/baseUpload/baseUpload.vue')
        },
        {
          path: 'basePretest',
          name: 'basePretest',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '年审基数预发',
            access: ['YearReviewPreissue']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearExamine/basePretest/basePretest.vue')
        },
        {
          path: 'basePretestDetail',
          name: 'basePretestDetail',
          meta: {
            keepAlive: true,
            hideInMenu: true,
            title: '年审基数预发详情',
            access: ['YearReviewPreissue'],
            notCache: true
          },
          component: () => import('@/view/policy-support/yearExamine/basePretest/basePretestDetail.vue')
        },
        {
          path: 'yearRecord',
          name: 'yearRecord',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '年审记录',
            access: ['YearReviewRecord']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearExamine/yearRecord/yearRecord.vue')
        },
        {
          path: 'yearRecordDetail',
          name: 'yearRecordDetail',
          meta: {
            keepAlive: true,
            hideInMenu: true,
            title: '年审记录详情',
            access: ['YearReviewRecord'],
            notCache: true
          },
          component: () => import('@/view/policy-support/yearExamine/yearRecord/yearRecordDetail.vue')
        },
        {
          path: 'adjustBaseRecord',
          name: 'adjustBaseRecord',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '年审调基记录',
            access: ['YearReviewAdjustmentRecord']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearExamine/adjustBaseRecord/adjustBaseRecord.vue')
        },
        {
          path: 'adjustBaseRecordDetail',
          name: 'adjustBaseRecordDetail',
          meta: {
            keepAlive: false,
            hideInMenu: true,
            title: '年审调基记录详情',
            access: ['YearReviewAdjustmentRecord'],
            notCache: true
          },
          component: () => import('@/view/policy-support/yearExamine/adjustBaseRecord/adjustBaseRecordDetail.vue')
        }
      ]
    },
    {
      path: 'yearInquiry',
      name: 'yearInquiry',
      meta: {
        keepAlive: true,
        showAlways: true,
        title: '年度普调',
        access: ['oti']
        // notCache: false
      },
      component: parentView,
      children: [
        {
          path: 'socialInquiry',
          name: 'socialInquiry',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '社保年度普调',
            access: ['oti']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearInquiry/socialInquiry/socialInquiry.vue')
        },
        {
          path: 'accumulationFundInquiry',
          name: 'accumulationFundInquiry',
          meta: {
            keepAlive: true,
            hideInMenu: false,
            title: '公积金年度普调',
            access: ['oti']
            // notCache: false
          },
          component: () => import('@/view/policy-support/yearInquiry/accumulationFundInquiry/accumulationFundInquiry.vue')
        }
      ]
    },
    {
      path: 'socialTariff',
      name: 'socialTariff',
      meta: {
        keepAlive: true,
        hideInMenu: false,
        title: '社保汇率调整',
        access: ['oti']
        // notCache: false
      },
      component: () => import('@/view/policy-support/socialTariff/socialTariff.vue')
    }
  ]
}

export default policySupportRouter;